package com.syh.jn.scm.dto.supplier.base.goods.goodsManufacturer;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 生产商
 */
@Data
public class ManufacturerSto implements Serializable {
  /**
   * 名称
   */
  @NotBlank(message = "名称不能为空")
  private String name;
  /**
   * 归属id
   */
  @NotNull(message = "归属id不能为空")
  private Long businessEntityId;
  /**
   * 排序等级
   */
  @Range(min = 0, max = 1000, message = "排序值需要在1-1000以内")
  private Integer orderLevel;
}
